﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Manyor.Net
{
    /// <summary>
    /// SOCKET 代码 ，
    /// 0x0001- 0x0010:状态标识
    /// 
    /// </summary>
    public class CommandCode
    {
        /*
        public const int CONNECT_ = 0x000;
         * */

        #region -- 状态 --
        /// <summary>
        /// 连接OK
        /// </summary>
        public const int COMMAND_CONNECT_OK = 1;
        /// <summary>
        /// 连接失败
        /// </summary>
        public const int COMMAND_CONNECT_FAILED = 2;
        /// <summary>
        /// 文件传输命令
        /// </summary>
        public const int COMMAND_TRANSFER = 3;

        #endregion

        #region -- 文件传输 --
       
        /// <summary>
        /// 开始文件传输(准备)
        /// </summary>
        public const int CONNECT_TRANSFER_READY = 100;
        /// <summary>
        /// 开始文件传输(已经可以传输)
        /// </summary>
        public const int CONNECT_TRANSFER_BEGIN = 101;

        /// <summary>
        /// 已成功接收数据包，可以传输下个数据包
        /// </summary>
        public const int CONNECT_TRANSFER_NEXT = 102;
        /// <summary>
        /// 传送完毕
        /// </summary>
        public const int CONNECT_TRANFSER_FINISH = 103;
        /// <summary>
        /// 正在传输
        /// </summary>
        public const int CONNECT_TRANSFER_DOING = 104;
        /// <summary>
        /// 接收数据包失败，重发
        /// </summary>
        public const int CONNECT_TRANSFER_FIELD = 105;

        /// <summary>
        /// 结束文件传输
        /// </summary>
        public const int CONNECT_TRANSFER_END = 111;

        #endregion
    }
}
